<!DOCTYPE html>
<html lang='en'>

<head>
  <meta charset='UTF-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <title></title>
  <script type='text/javascript' src='js/vue.js'></script>
</head>

<body>
  <div id='app'>
    <form action="#" @submit.prevent="sub">
      <input type="text" v-model="msg">
      <input type="submit" value="提交">
    </form>
    <input type="button" value="aaaa" @click="say($event)">
  </div>
  <script type='text/javascript'>
    var vm = new Vue({
      el: '#app',
      data: {
        msg: 'Hello Vue'
      },
      methods: {
        sub(){
          console.log(this.msg)
        },
        say(event){
          console.log(event);
        }
      },
    });
  </script>
</body>

</html>